class AddressesController < ApplicationController
  respond_to :js
  
  def find_by_zip
    zip = params[:zip]
    @address = Address.find_by_zip(zip)
    flash[:notice] = 'CEP nao encontrado.' if @address.nil?
  end
end
